package com.yehui.first;

import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class ApplicationListenerTest {

	@EventListener
	@Async
	public void listener(String name){
		System.out.println("监听到的事件是："+name);
	}
}
